#include "CommandType.h"

namespace data {

	CommandType StringToCommandType( const std::string& commandStr ) {
		if(commandStr == "Press") return CommandType::Press;
		if(commandStr == "Release") return CommandType::Release;
		if(commandStr == "Move") return CommandType::Move;
		if(commandStr == "Send") return CommandType::Send;
		if(commandStr == "UnknownCommandType") return CommandType::UnknownCommandType;
		return CommandType::UnknownCommandType;
	}

	std::string CommandTypeToString( const CommandType& commandType ) {
		switch(commandType)
		{
			case CommandType::Press: return "Press";
			case CommandType::Release: return "Release";
			case CommandType::Move: return "Move";
			case CommandType::Send: return "Send";
			case CommandType::UnknownCommandType: return "UnknownCommandType";
			default: return "UnknownCommandType";
		}
	}
}
